package com.example.ymm.modules1.service.ms;

import com.example.ymm.base.BaseService;
import com.example.ymm.model.TableList;
import com.example.ymm.model.YmPageDto;
import com.example.ymm.modules1.entity.ms.VMaterial;
import com.example.ymm.modules1.query.ms.VMaterialQueryCriteria;

import java.util.List;

public interface VMaterialService extends BaseService<VMaterial> {


    TableList<VMaterial> list(VMaterialQueryCriteria criteria, YmPageDto ymPage);


    List<VMaterial> queryAll(VMaterialQueryCriteria criteria);

    List<VMaterial> queryList(VMaterialQueryCriteria criteria);

    /**
     * 查找 名称 和规格
     * @param mname
     * @param guige
     * @return
     */
    VMaterial findByMnameAndGuige(String mname,String guige);


    VMaterial findByNo(String no);

}
